<!DOCTYPE html>
<html>
<head>
    <title></title>
    <#include "/header.html">
</head>
<body>
<style>
    th {
        text-align: center;
    }
</style>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <select style="height: 34px;" id="selectUserGzhList" v-model="gzhCode">

            </select>
            <select style="height: 34px;" id="referType" v-model="referType">
                <option value="0" selected>全部</option>
                <option value="1">即将过期</option>
                <option value="2">已过期</option>
            </select>
            <a class="btn btn-primary" @click="reload"><i class="fa fa-plus"></i>&nbsp;查询</a>
<!--            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>-->
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;详情</a>
            <#if shiro.hasPermission("sys:buserinfo:givevip")>
            <a class="btn btn-default" @click="updateCensus">更新统计数</a>
            </#if>
<!--            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>-->
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">用户ID</div>
                <div class="col-sm-10">
                    <input disabled type="text" class="form-control" v-model="bUserVipValid.userId" placeholder="开始时间"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">用户昵称</div>
                <div class="col-sm-10">
                    <input disabled type="text" class="form-control" v-model="bUserVipValid.nickName" placeholder="开始时间"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">用户头像</div>
                <div class="col-sm-10">
                    <img v-bind:src="bUserVipValid.avatarUrl" width="200px" height="200px" alt="用户头像"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">开始时间</div>
                <div class="col-sm-10">
                    <input disabled type="text" class="form-control" v-model="bUserVipValid.beginTime" placeholder="开始时间"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">过期时间</div>
                <div class="col-sm-10">
                    <input disabled type="text" class="form-control" v-model="bUserVipValid.endTime" placeholder="过期时间"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">vip等级</div>
                <div class="col-sm-10">
                    <label class="radio-inline">
                        <input type="radio" name="vipLev" value="1" v-model="bUserVipValid.vipLev"/> 半年
                    </label>
                    <label class="radio-inline">
                        <input type="radio" name="vipLev" value="2" v-model="bUserVipValid.vipLev"/> 一年
                    </label>
                    <label class="radio-inline">
                        <input type="radio" name="vipLev" value="3" v-model="bUserVipValid.vipLev"/> 三年
                    </label>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">过期状态</div>
                <div class="col-sm-10">
                    <label class="radio-inline">
                        <input type="radio" name="vipStatus" value="0" v-model="bUserVipValid.vipStatus"/> 已过期
                    </label>
                    <label class="radio-inline">
                        <input type="radio" name="vipStatus" value="1" v-model="bUserVipValid.vipStatus"/> 未过期
                    </label>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">购买时间</div>
                <div class="col-sm-10">
                    <input disabled type="text" class="form-control" v-model="bUserVipValid.createTime" placeholder="购买时间"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">修改时间</div>
                <div class="col-sm-10">
                    <input disabled type="text" class="form-control" v-model="bUserVipValid.modifyTime" placeholder="修改时间"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
<!--                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>-->
                <input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/buservipvalid.js?_${.now?long}"></script>
</body>
</html>
